package com.ksyun.campus.metaserver.domain;

import lombok.Data;

/**
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/8/11 01:46
 */
@Data
public class ServerInfo {

    private String ip;

    private String port;

    /**
     * 区域：北京、上海、天津
     */
    private String zone;

    /**
     * 机架
     */
    private String rack;

    public ServerInfo() {
    }

    public ServerInfo(String ip, String port) {
        this.ip = ip;
        this.port = port;
    }

    public ServerInfo(String ip, String port, String zone, String rack) {
        this.ip = ip;
        this.port = port;
        this.zone = zone;
        this.rack = rack;
    }
}
